﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Programonica.Igramonica.PhysXPipeline
{
    public static class XmlPhysXFileParser
    {
        public static Matrix ParseMatrix(string text)
        {
            string[] tokens = text.Split(' ');

            return new Matrix(float.Parse(tokens[0]), float.Parse(tokens[1]), float.Parse(tokens[2]), 0.0f, 
                              float.Parse(tokens[4]), float.Parse(tokens[5]), float.Parse(tokens[6]), 0.0f, 
                              float.Parse(tokens[8]), float.Parse(tokens[9]), float.Parse(tokens[10]), 0.0f, 
                              float.Parse(tokens[12]), float.Parse(tokens[13]), float.Parse(tokens[14]), 1.0f);
        }
    }
}
